import request from '@/utils/request'

//获取敏感词列表
export function getSensitiveList(data) {
	return request({
		method: 'get',
		url: 'tbSysSensitive/queryPageList',
		params: data
	})
}

//批量添加敏感词
export function batchAddedSensitive(names) {
	return request({
		method: 'get',
		url: 'tbSysSensitive/addBatch/' + names,
	})
}

//删除敏感词信息
export function deleteSensitive(id) {
	return request({
		method: 'post',
		url: 'tbSysSensitive/delete/' + id
	})
}

//编辑敏感词信息
export function updateSensitive(data) {
	return request({
		method: 'post',
		url: 'tbSysSensitive/update',
		data
	})
}

//敏感词详情信息
export function sensitiveDetail(id) {
	return request({
		method: 'post',
		url: 'tbSysSensitive/query/' + id
	})
}